<?php

class MapController extends BaseController {

	public function map()
	{
		$game = Game::where('activo', '=', true)->first();
		$teams = -1;
		if(isset($game))
		{
			$teams = Team::where('gameid', '=', $game->id)->get();
		}
		
		return View::make('map')->with(compact('teams'));
	}

}